package com.newcapec.service;

import com.newcapec.bean.NewsEntity;

import java.util.List;

/**
 * @Description:这是访问新闻数据的接口
 * @Author:yangshupeng
 * @Date: 2022/3/15 8:27
 * @Version:1.0
 */
public interface NewsService {
    boolean addNews(NewsEntity newsEntity);

    boolean deleteNews(String id);

    boolean updateNews(NewsEntity newsEntity);

    List<NewsEntity> query(int offset,int pageSize,NewsEntity news);

    NewsEntity queryById(String id);

    List<NewsEntity> queryByColumnId(int columnId);

    int getAllCount(String name);

}
